<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p5_文字处理</title>
    <style>
        p{
            font-size: 30px;
            font-family: "华文隶书","幼圆";
        }
        a{
            text-decoration: underline;
            text-decoration: none;
            text-decoration: line-through;
            text-decoration: overline;
            text-decoration-color: yellow;
        }
        div{
            width: 200px;
            height: 200px;
            border: red solid;
            /*文字水平居中*/
            text-align: center;
            /*让单行文本的行高与父级块元素一样高，可以垂直居中*/
            line-height: 200px;
        }

        span{
            font-weight: bold;/*字体加粗*/
            font-style: italic;/*字体斜体*/
            font-weight: lighter;/*字体细体*/
            font-weight: normal;/*字体正常*/
        }

        h4{
            /*文字阴影:   X轴偏移量 Y轴偏移量 羽化值 颜色*/
            text-shadow: 5px -5px 5px red;
        }
    </style>
</head>
<body>
    <p>我是测试文字 123 abc</p>
    <a href="#">超链接</a>
    <div>我是div</div>
    <span>我是span</span>
    <h4>测试文字</h4>
</body>
</html>